package com.ffcs.web.model.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Question entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wechat_question")
public class Question implements java.io.Serializable {

	// Fields

	private Integer id;
	private String questionName;
	private Integer ascore;
	private Integer bscore;
	private Integer cscore;
	private Integer dscore;

	// Constructors

	/** default constructor */
	public Question() {
	}

	/** full constructor */
	public Question(String questionName, Integer ascore, Integer bscore,
			Integer cscore, Integer dscore) {
		this.questionName = questionName;
		this.ascore = ascore;
		this.bscore = bscore;
		this.cscore = cscore;
		this.dscore = dscore;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "questionName", nullable = false, length = 100)
	public String getQuestionName() {
		return this.questionName;
	}

	public void setQuestionName(String questionName) {
		this.questionName = questionName;
	}

	@Column(name = "aScore", nullable = false)
	public Integer getAscore() {
		return this.ascore;
	}

	public void setAscore(Integer ascore) {
		this.ascore = ascore;
	}

	@Column(name = "bScore", nullable = false)
	public Integer getBscore() {
		return this.bscore;
	}

	public void setBscore(Integer bscore) {
		this.bscore = bscore;
	}

	@Column(name = "cScore", nullable = false)
	public Integer getCscore() {
		return this.cscore;
	}

	public void setCscore(Integer cscore) {
		this.cscore = cscore;
	}

	@Column(name = "dScore", nullable = false)
	public Integer getDscore() {
		return this.dscore;
	}

	public void setDscore(Integer dscore) {
		this.dscore = dscore;
	}

}